package com.yang.knowledgebase.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
@Data
@TableName("ebook")
public class Book implements Serializable {
    @TableId("id")
    private Long id;

    @TableField("name")
    private String name;

    @TableField("category1_id")
    private Long category1Id;

    @TableField("category2_id")
    private Long category2Id;

    @TableField("description")
    private String description;

    @TableField("cover")
    private String cover;

    @TableField("doc_count")
    private Integer docCount;

    @TableField("view_count")
    private Integer viewCount;

    @TableField("vote_count")
    private Integer voteCount;

}
